add_executable(server server/server.cpp)
add_executable(client client/client.cpp)


find_package(asio CONFIG REQUIRED)
find_package(msgpack CONFIG REQUIRED)

target_link_libraries(server PRIVATE asio asio::asio msgpackc msgpackc-cxx)
target_link_libraries(client PRIVATE asio asio::asio msgpackc msgpackc-cxx)

if (ENABLE_SSL)
    target_link_libraries(server ${Boost_LIBRARIES} -lssl -lcrypto -lpthread)
    target_link_libraries(client ${Boost_LIBRARIES} -lssl -lcrypto -lpthread)
else()
    target_link_libraries(server ${Boost_LIBRARIES})
    target_link_libraries(client ${Boost_LIBRARIES})

endif()
